import { instance } from '../request'

const request = instance

/**
 * 分页获取受控访问记录
 * @param accessRejectionCollect 筛选条件
 * @returns
 */
export const getRejectionCollectApi = (
  accessRejectionCollect: AccessRejectionCollect,
  page: number,
  size: number
): PromiseRes<PageResult<AccessRejectionCollect>> =>
  request.post(
    `/accessRejectionCollect/getList?page=${page}&size=${size}`,
    accessRejectionCollect
  )
